<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-02-04 19:40:16
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-05-19 18:03:43
--> 
{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>技师种类</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>技师种类</dt>
                <dd><input class="txt" name="search_name" id="search_name" value="{$search_name}" type="text"></dd>
                <dt>{$Think.lang.fuwu_skill_search_admin_name}</dt>
                <dd><input class="txt" name="search_admin_name" id="search_admin_name" value="{$search_admin_name}" type="text"></dd>
                <dt>{$Think.lang.fuwu_skill_search_status}</dt>
                <dd>
                    <select name="search_status">
                        <option value="">--请选择</option>
                        <option value="1" {if $search_status == "1"} selected {/if}>启用</option>
                        <option value="2" {if $search_status == "2"} selected {/if}>禁用</option>
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $search_name != '' || $search_admin_name !='' || $search_status != ''}
                <a class="btn" href="{:url('Fuskill/index')}" title="{$Think.lang.ds_cancel_search}"><span>{$Think.lang.ds_cancel_search}</span></a>
                {/if}
                <!--<a class="btn btn-default" href="javascript:export_xls('{:url('Brand/export_step1')}')"><span>{$Think.lang.ds_export}Excel</span></a>-->
            </div>
        </div>
    </form>
    <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <th class="w24"></th>
                <th>技师种类</th>
                <th>{$Think.lang.fuwu_skill_admin_name}</th>
                <th class="w150">{$Think.lang.fuwu_skill_status}</th>
                <th class="w150">{$Think.lang.fuwu_skill_createdtime}</th>
                <th class="w150">{$Think.lang.fuwu_skill_updatedtime}</th>
                <th class="w120 align-center">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="$data"}
            {foreach name="data" item="v"}
            <tr class="hover edit" id="ds_row_{$v.id}">
                <td><input value="{$v.id}" class="checkitem" type="checkbox" name="del_brand_id[]"></td>
                <td class="name">{$v.name}</td>
                <td class="name">{$v.admin_name}</td>
                <td class="name">
                    {if $v.status == '0'}
                    <a href="JavaScript:dsLayerConfirm('{:url('Fuskill/edit_status',['column'=>'status','value'=>1,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_error.png"  width="22px"></a>
                    {else /}
                    <a href="JavaScript:dsLayerConfirm('{:url('Fuskill/edit_status',['column'=>'status','value'=>0,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_success.png"></a>
                    {/if}
                </td>
                <td class="name">{$v.created_at}</td>
                <td class="name">{$v.updated_at}</td>
                <td class="align-center">
                    <a href="javascript:dsLayerOpen('{:url('Fuskill/edit',['id'=>$v.id])}','{$Think.lang.ds_edit}--{$v.name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
                    <a href="javascript:dsLayerConfirm('{:url('Fuskill/del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}',{$v.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
                {notempty name="data"}
                <tr colspan="15" class="tfoot">
                    <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                    <td colspan="16">
                        <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
                        &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
                    </td>
                </tr>
                {/notempty}
            </tfoot>
        </table>
    {$showpage}
    <div class="clear"></div>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Fuskill/del.html?id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }
</script>
